// 'use strict'
const path = require('path')

module.exports = {
  dev: {
		// Paths
		assetsSubDirectory: 'static',
		assetsPublicPath: '/',
		proxyTable: {
			'/': {
				changeOrigin: true,
				target: "https://bridge-mtf.natapp4.cc", //后台反向代理到的地址
				pathRewrite: {
					'^': ''
				}
			}
		},
    host:'localhost',
    // host:'192.168.199.96',
    port: 8080,
    // autoOpenBrowser: true,
    errorOverlay: true,
    notifyOnErrors: true,
    poll: false,
    useEslint: true,
    showEslintErrorsInOverlay: true,

    /**
     * Source Maps
     */
    devtool: 'cheap-module-eval-source-map',
    cacheBusting: true,
    cssSourceMap: true
  },

  build: {
    // Template for index.html
    index: path.resolve(__dirname, '../imcoperation/index.html'),
    // Paths
    assetsRoot: path.resolve(__dirname, '../imcoperation'),
    assetsSubDirectory: 'static',
    assetsPublicPath: './',

    /**
     * Source Maps
     */
    productionSourceMap: false,
    devtool: '#source-map',
    productionGzip: false,
    productionGzipExtensions: ['js', 'css'],
    bundleAnalyzerReport: process.env.npm_config_report
  }
}
